[INFO] cloning repository https://github.com/yacn/lz4rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yacn/lz4rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyacn%2Flz4rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyacn%2Flz4rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 443a33606f073da02b991e18f5a9d2d8737a802d
[INFO] checking yacn/lz4rs against try#7dabc88a3b6768751847baeb49983f31ac5f20e2 for pr-155945
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyacn%2Flz4rs" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/yacn/lz4rs
[INFO] finished tweaking git repo https://github.com/yacn/lz4rs
[INFO] tweaked toml for git repo https://github.com/yacn/lz4rs written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/yacn/lz4rs on toolchain 7dabc88a3b6768751847baeb49983f31ac5f20e2
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7dabc88a3b6768751847baeb49983f31ac5f20e2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/yacn/lz4rs already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7dabc88a3b6768751847baeb49983f31ac5f20e2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+7dabc88a3b6768751847baeb49983f31ac5f20e2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] f162472ebc0a8606cfbfa21a7b9b2a9c8ebf1bbe5c2f8451d8d7b81ca4202064
[INFO] running `Command { std: "docker" "start" "-a" "f162472ebc0a8606cfbfa21a7b9b2a9c8ebf1bbe5c2f8451d8d7b81ca4202064", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "f162472ebc0a8606cfbfa21a7b9b2a9c8ebf1bbe5c2f8451d8d7b81ca4202064", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f162472ebc0a8606cfbfa21a7b9b2a9c8ebf1bbe5c2f8451d8d7b81ca4202064", kill_on_drop: false }`
[INFO] [stdout] f162472ebc0a8606cfbfa21a7b9b2a9c8ebf1bbe5c2f8451d8d7b81ca4202064
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+7dabc88a3b6768751847baeb49983f31ac5f20e2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] efd7dbf33027b48e74cf4e3452e912fe1a92f3a9860df9ebe8d23e7fcf51b918
[INFO] running `Command { std: "docker" "start" "-a" "efd7dbf33027b48e74cf4e3452e912fe1a92f3a9860df9ebe8d23e7fcf51b918", kill_on_drop: false }`
[INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr]    Compiling gcc v0.1.4 (https://github.com/alexcrichton/gcc-rs?rev=f5c52d956e0742a66e40c8301e634e136c3ae287#f5c52d95)
[INFO] [stdout] error[E0432]: unresolved import `std::io::Command`
[INFO] [stdout]  --> /opt/rustwide/cargo-home/git/checkouts/gcc-rs-efa94263d04b9fc5/f5c52d9/src/lib.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::io::Command;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^ no `Command` in `io`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct instead
[INFO] [stdout]   |
[INFO] [stdout] 3 - use std::io::Command;
[INFO] [stdout] 3 + use std::process::Command;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `std::io::process`
[INFO] [stdout]  --> /opt/rustwide/cargo-home/git/checkouts/gcc-rs-efa94263d04b9fc5/f5c52d9/src/lib.rs:4:14
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::io::process::InheritFd;
[INFO] [stdout]   |              ^^^^^^^ could not find `process` in `io`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `std::os::getenv`
[INFO] [stdout]   --> /opt/rustwide/cargo-home/git/checkouts/gcc-rs-efa94263d04b9fc5/f5c52d9/src/lib.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |     use std::os::getenv;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^ no `getenv` in `os`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find `fs` in `io`
[INFO] [stdout]    --> /opt/rustwide/cargo-home/git/checkouts/gcc-rs-efa94263d04b9fc5/f5c52d9/src/lib.rs:104:18
[INFO] [stdout]     |
[INFO] [stdout] 104 |         std::io::fs::mkdir_recursive(&obj.dir_path(), std::io::USER_RWX).unwrap();
[INFO] [stdout]     |                  ^^ could not find `fs` in `io`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Path` in this scope
[INFO] [stdout]   --> /opt/rustwide/cargo-home/git/checkouts/gcc-rs-efa94263d04b9fc5/f5c52d9/src/lib.rs:10:34
[INFO] [stdout]    |
[INFO] [stdout] 10 |     pub include_directories: Vec<Path>,
[INFO] [stdout]    |                                  ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::path::Path;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Path` in this scope
[INFO] [stdout]   --> /opt/rustwide/cargo-home/git/checkouts/gcc-rs-efa94263d04b9fc5/f5c52d9/src/lib.rs:14:22
[INFO] [stdout]    |
[INFO] [stdout] 14 |     pub objects: Vec<Path>,
[INFO] [stdout]    |                      ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::path::Path;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Path` in this scope
[INFO] [stdout]   --> /opt/rustwide/cargo-home/git/checkouts/gcc-rs-efa94263d04b9fc5/f5c52d9/src/lib.rs:99:15
[INFO] [stdout]    |
[INFO] [stdout] 99 |     let src = Path::new(getenv("CARGO_MANIFEST_DIR").unwrap());
[INFO] [stdout]    |               ^^^^ use of undeclared type `Path`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::path::Path;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Path` in this scope
[INFO] [stdout]    --> /opt/rustwide/cargo-home/git/checkouts/gcc-rs-efa94263d04b9fc5/f5c52d9/src/lib.rs:100:15
[INFO] [stdout]     |
[INFO] [stdout] 100 |     let dst = Path::new(getenv("OUT_DIR").unwrap());
[INFO] [stdout]     |               ^^^^ use of undeclared type `Path`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout]   3 + use std::path::Path;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `USER_RWX` in module `std::io`
[INFO] [stdout]    --> /opt/rustwide/cargo-home/git/checkouts/gcc-rs-efa94263d04b9fc5/f5c52d9/src/lib.rs:104:64
[INFO] [stdout]     |
[INFO] [stdout] 104 |         std::io::fs::mkdir_recursive(&obj.dir_path(), std::io::USER_RWX).unwrap();
[INFO] [stdout]     |                                                                ^^^^^^^^ not found in `std::io`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope
[INFO] [stdout]   --> /opt/rustwide/cargo-home/git/checkouts/gcc-rs-efa94263d04b9fc5/f5c52d9/src/lib.rs:59:43
[INFO] [stdout]    |
[INFO] [stdout] 59 |     let mut cmd = Command::new(gcc(target.as_slice()));
[INFO] [stdout]    |                                           ^^^^^^^^ method not found in `String`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope
[INFO] [stdout]   --> /opt/rustwide/cargo-home/git/checkouts/gcc-rs-efa94263d04b9fc5/f5c52d9/src/lib.rs:65:15
[INFO] [stdout]    |
[INFO] [stdout] 65 |     if target.as_slice().contains("-ios") {
[INFO] [stdout]    |               ^^^^^^^^ method not found in `String`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope
[INFO] [stdout]   --> /opt/rustwide/cargo-home/git/checkouts/gcc-rs-efa94263d04b9fc5/f5c52d9/src/lib.rs:66:35
[INFO] [stdout]    |
[INFO] [stdout] 66 |         cmd.args(ios_flags(target.as_slice()).as_slice());
[INFO] [stdout]    |                                   ^^^^^^^^ method not found in `String`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope
[INFO] [stdout]   --> /opt/rustwide/cargo-home/git/checkouts/gcc-rs-efa94263d04b9fc5/f5c52d9/src/lib.rs:72:19
[INFO] [stdout]    |
[INFO] [stdout] 72 |         if target.as_slice().contains("i686") {
[INFO] [stdout]    |                   ^^^^^^^^ method not found in `String`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope
[INFO] [stdout]   --> /opt/rustwide/cargo-home/git/checkouts/gcc-rs-efa94263d04b9fc5/f5c52d9/src/lib.rs:74:26
[INFO] [stdout]    |
[INFO] [stdout] 74 |         } else if target.as_slice().contains("x86_64") {
[INFO] [stdout]    |                          ^^^^^^^^ method not found in `String`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope
[INFO] [stdout]   --> /opt/rustwide/cargo-home/git/checkouts/gcc-rs-efa94263d04b9fc5/f5c52d9/src/lib.rs:78:20
[INFO] [stdout]    |
[INFO] [stdout] 78 |         if !target.as_slice().contains("i686") {
[INFO] [stdout]    |                    ^^^^^^^^ method not found in `String`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope
[INFO] [stdout]    --> /opt/rustwide/cargo-home/git/checkouts/gcc-rs-efa94263d04b9fc5/f5c52d9/src/lib.rs:110:32
[INFO] [stdout]     |
[INFO] [stdout] 110 |     run(Command::new(ar(target.as_slice())).arg("crus")
[INFO] [stdout]     |                                ^^^^^^^^ method not found in `String`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `slice` found for reference `&str` in the current scope
[INFO] [stdout]    --> /opt/rustwide/cargo-home/git/checkouts/gcc-rs-efa94263d04b9fc5/f5c52d9/src/lib.rs:115:36
[INFO] [stdout]     |
[INFO] [stdout] 115 |              dst.display(), output.slice(3, output.len() - 2));
[INFO] [stdout]     |                                    ^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `split_once` with a similar name, but with different arguments
[INFO] [stdout]    --> /rustc/7dabc88a3b6768751847baeb49983f31ac5f20e2/library/core/src/str/mod.rs:1970:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope
[INFO] [stdout]    --> /opt/rustwide/cargo-home/git/checkouts/gcc-rs-efa94263d04b9fc5/f5c52d9/src/lib.rs:140:57
[INFO] [stdout]     |
[INFO] [stdout] 140 |     let res = getenv(format!("{}_{}", var_base, target).as_slice())
[INFO] [stdout]     |                                                         ^^^^^^^^ method not found in `String`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope
[INFO] [stdout]    --> /opt/rustwide/cargo-home/git/checkouts/gcc-rs-efa94263d04b9fc5/f5c52d9/src/lib.rs:141:65
[INFO] [stdout]     |
[INFO] [stdout] 141 |         .or_else(|| getenv(format!("{}_{}", var_base, target_u).as_slice()))
[INFO] [stdout]     |                                                                 ^^^^^^^^ method not found in `String`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope
[INFO] [stdout]    --> /opt/rustwide/cargo-home/git/checkouts/gcc-rs-efa94263d04b9fc5/f5c52d9/src/lib.rs:142:61
[INFO] [stdout]     |
[INFO] [stdout] 142 |         .or_else(|| getenv(format!("{}_{}", kind, var_base).as_slice()))
[INFO] [stdout]     |                                                             ^^^^^^^^ method not found in `String`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `find_str` found for reference `&str` in the current scope
[INFO] [stdout]    --> /opt/rustwide/cargo-home/git/checkouts/gcc-rs-efa94263d04b9fc5/f5c52d9/src/lib.rs:152:29
[INFO] [stdout]     |
[INFO] [stdout] 152 |     let is_android = target.find_str("android").is_some();
[INFO] [stdout]     |                             ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `find` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 152 -     let is_android = target.find_str("android").is_some();
[INFO] [stdout] 152 +     let is_android = target.find("android").is_some();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `find_str` found for reference `&str` in the current scope
[INFO] [stdout]    --> /opt/rustwide/cargo-home/git/checkouts/gcc-rs-efa94263d04b9fc5/f5c52d9/src/lib.rs:164:29
[INFO] [stdout]     |
[INFO] [stdout] 164 |     let is_android = target.find_str("android").is_some();
[INFO] [stdout]     |                             ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `find` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 164 -     let is_android = target.find_str("android").is_some();
[INFO] [stdout] 164 +     let is_android = target.find("android").is_some();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope
[INFO] [stdout]    --> /opt/rustwide/cargo-home/git/checkouts/gcc-rs-efa94263d04b9fc5/f5c52d9/src/lib.rs:175:9
[INFO] [stdout]     |
[INFO] [stdout] 174 | /     get_var("CFLAGS").unwrap_or(String::new())
[INFO] [stdout] 175 | |        .as_slice().words().map(|s| s.to_string())
[INFO] [stdout]     | |        -^^^^^^^^ method not found in `String`
[INFO] [stdout]     | |________|
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope
[INFO] [stdout]    --> /opt/rustwide/cargo-home/git/checkouts/gcc-rs-efa94263d04b9fc5/f5c52d9/src/lib.rs:222:23
[INFO] [stdout]     |
[INFO] [stdout] 222 |     res.push(sdk_path.as_slice().trim());
[INFO] [stdout]     |                       ^^^^^^^^ method not found in `String`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `gcc` (lib) due to 24 previous errors
[INFO] running `Command { std: "docker" "inspect" "efd7dbf33027b48e74cf4e3452e912fe1a92f3a9860df9ebe8d23e7fcf51b918", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "efd7dbf33027b48e74cf4e3452e912fe1a92f3a9860df9ebe8d23e7fcf51b918", kill_on_drop: false }`
[INFO] [stdout] efd7dbf33027b48e74cf4e3452e912fe1a92f3a9860df9ebe8d23e7fcf51b918
